import service from "@/utils/request"
//二级分类
export const getCategoryAPI = (id) => {
    return service.get(`/category/?id=${id}`)
}
//3级分类面包屑接口
export const getCategoryFilterAPI = (id) => {
    return service.get(`/category/sub/filter?id=${id}`)
}
/**
 * @description: 获取商品导航数据
 * @data { 
     categoryId: 1005000 ,
     page: 1,
     pageSize: 20,
     sortField: 'publishTime' | 'orderNum' | 'evaluateNum'
   } 
 * @return {*}
 */
export const getSubCategoryAPI = (data) => {
    return service.post('/category/goods/temporary', data)
}